package com.exce.service;


import com.exce.entity.ExceptionEntity;
import com.exce.mapper.ExceptionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yinxing
 * @date 2022-09-09
 */
@Service
public class ExceptionServiceImpl implements ExceptionService {

    @Resource
    private ExceptionMapper exceptionMapper;


    @Override
    public Integer addException(ExceptionEntity exceptionEntity) {
        return exceptionMapper.insert(exceptionEntity);
    }

    @Override
    public void makeException() {
        int i=0;
        System.out.println(10/i);
    }
}
